<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                template="layout/template.xhtml">
    <ui:define name="body">
        <h:messages globalOnly="true" styleClass="message"/>
        <h:form id="studentForm">
            <rich:panel>
                <f:facet name="header">#{messages['student']}</f:facet>
                <s:decorate id="numberDecoration" template="layout/display.xhtml">
                    <ui:define name="label">#{messages['student.number']}</ui:define>
                    #{studentHome.instance.studentNumber}
                </s:decorate>
                <s:decorate id="fnameDecoration" template="layout/display.xhtml">
                    <ui:define name="label">#{messages['student.firstname']}</ui:define>
                    #{studentHome.instance.firstName}
                </s:decorate>
                <s:decorate id="lnameDecoration" template="layout/display.xhtml">
                    <ui:define name="label">#{messages['student.lastname']}</ui:define>
                    #{studentHome.instance.lastName}
                </s:decorate>
                <s:decorate id="posDecoration" template="layout/display.xhtml">
                    <ui:define name="label">#{messages['student.pos']}</ui:define>
                    #{studentHome.instance.programOfStudy.name}
                </s:decorate>
                <div style="clear:both"/>
            </rich:panel>
            <div class="actionButtons">
                <s:button id="edit" value="#{messages['button.edit']}" view="/studentEdit.xhtml">
                    <f:param name="studentId" value="#{studentHome.studentId}" />
                </s:button>
                <s:button propagation="end"
                          id="done"
                          value="#{messages['button.done']}"
                          view="/studentList.xhtml"/>
            </div>
        </h:form>
    </ui:define>
</ui:composition>